package com.googlecode.openauth.web.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.googlecode.openauth.web.entity.ActionInfo;
import com.googlecode.openauth.web.entity.RoleInfo;

public interface IActionDao {
	public void addAction(ActionInfo action);
	public void insertAction(ActionInfo action);
	public void delActionById(int id);
	public void delAction(ActionInfo action);
	public void delActions(List<Integer> ids);
	public void updateAction(ActionInfo action);
	public ActionInfo getActionById(int id);
	public List<ActionInfo> getActions(ActionInfo action);
	public int getAllActionsCount(RoleInfo role);
	public List<ActionInfo> getAllAction();
	public List<ActionInfo> getAllActions(RoleInfo role, RowBounds rowBounds);
	public int searchActionsCount(ActionInfo action);
	public List<ActionInfo> searchActions(ActionInfo action, RowBounds rowBounds);
}
